/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dog.dao.impl;

import com.dog.dao.ApplicantDAO;
import com.dog.model.Applicant;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;

/**
 * User: Kuttubek Aidaraliev
 * Date: 02.04.2010
 * Time: 08:49:57
 */

@Repository
public class ApplicantDAOImpl extends DAOImpl<Applicant> implements ApplicantDAO {

    @Autowired
    private SessionFactory sessionFactory;

    public ApplicantDAOImpl() {
        super(Applicant.class);
    }

    @PostConstruct
    private void initialize(){
        this.setSessionFactory(sessionFactory);
    }

}
